<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta content="" name="Keywords" id="Keywords">
    <meta content="" name="description" id="description">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>UTo悠途信息技术有限公司 - 新闻详情</title>
    <link rel="shortcut icon" href="images/public/favicon.ico">
    <!--  css start  -->
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/public.css">
    <!--  css end  -->
</head>

<body>

    <div id="dialog"></div>
    <!--  header  -->
    <header id="header">
        <img src="images/logo.png" alt="UTo" id="logo">

        <a id="menu-btn" href="javascript:void(0);">
            <span class="top"></span>
            <span class="mid"></span>
            <span class="bot"></span>
        </a>
    </header>
      <!--  menu  -->
    <div id="menu">
        <ul>
            <li class=""><a href="index.html">首页</a></li>
            <li class=""><a href="scopeBusiness.html">产品介绍</a></li>
            <li class=""><a href="solution.html">解决方案</a></li>
            <li class=""><a href="medical.html">绿色医疗</a></li>
            <li class=""><a href="company-introduce.html">关于UTo</a></li>
            <li class=""><a href="touch.html">加入UTo</a></li>
        </ul>
    </div>

    <!--  面包屑导航  -->
    <div id="bread">
        <div class="breadsub"><a id="callBack_a" href="">UTo动态</a>/<span class="subname"></span></div>
    </div>
    <!--  内容区  -->
    <div id="content">
        <div class="container">
            <div id="news-info">
            	
            </div>
            <div id="news-content"></div>
        </div>
    </div>
    <!--  footer  -->
    <div id="footer">
        <p id="copyright">版权所有&copy;2015-<span id="nowYear"></span> 成都悠途信息技术有限公司
            <br>蜀ICP备15023964号-1</p>
    </div>


    <script type="text/x-jquery-tmpl" id="newsInfoTemp">
        <h1 class="title" style="margin:0;margin-top:1rem">${newsName}</h1>
        <p id="news-title">
            <span id="newsDate">发布时间：${Api.timeFormat(releaseTime,"yyyy-MM-dd")}</span>
        </p>
    </script>

    <!--  JS 引入 start  -->
    <script src="js/jquery.min.js"></script>
     <script src="js/jquery.tmpl.min.js"></script>
    <script src="js/public.js"></script>
   

    <script>
        $(function () {
        	 type = type ? type : 1;
        if (type == 1) {
        	$('#callBack_a').attr('href','news.html?type=1')
            $(".subname").text("行业资讯");
        } else if (type == 2) {
        	$('#callBack_a').attr('href','news.html?type=2')
            $(".subname").text("企业动态");
        } else if (type == 3) {
        	$('#callBack_a').attr('href','news.html?type=3')
            $(".subname").text("品牌活动");
        } else if (type == 4) {
        	$('#callBack_a').attr('href','news.html?type=4')
            $(".subname").text("UTo故事");
        } else if (type == 5) {
        	$('#callBack_a').attr('href','news.html?type=5')
            $(".subname").text("招才纳士");
        }

            Api.newsInfo({
                "newsId": newsId,
                "time": new Date().getTime()
            }, function (data) {
                $("#newsInfoTemp").tmpl(data.data, {

                }).appendTo($("#news-info"));
                
                $("#news-content").html(data.data.newsContent);

                document.body.clientHeight > document.documentElement.clientHeight ? $("#footer").removeClass("foot") : $("#footer").addClass("foot");

                $("#description").attr("content", data.data.description);
                $("#Keywords").attr("content", data.data.keyWord);
            })
        })
        if($("#news-content p:has(img)")){
        	console.log($("#news-content p:has(img)"))
        	$("#news-content p:has(img)").css('text-indent','0 !important')
        	
        	
        }
        document.body.clientHeight + 180 > document.documentElement.clientHeight ? $("#footer").removeClass("foot") : $("#footer").addClass("foot");
    </script>
    <!--  JS 引入 end  -->
</body>